package cn.iune.erp.accounting;

import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface ISheetBalanceDao {

	public void insert(SheetBalance ac);
	
	public void delete(String fID);

	public SheetBalance update(SheetBalance ac);

	public List<SheetBalance> getAll();
	
	public SheetBalance getByID(String fID);
	
	public SheetBalance getByNo(String sheetCode, String enterpriseNo);
	
	public int getRootCount();

	public List<SheetBalance> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<SheetBalance> getChilds(String fParent);

	List<SheetBalance> getChildren(String fParent);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

	JSONObject shown(JSONObject data) throws SQLException;

//	public List<String> getRootIDs(String enterpriseNo);
	
//	public List<String> getChildIDs(String fParent);

}
